package br.ufg.inf.viwvc;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

/**
 *
 * @author Jose Fernando Tolentino
 */
public class Sessao {

    public static Sessao init(HttpServletRequest req) {
        HttpSession ss = req.getSession();
        Sessao s = (Sessao) ss.getAttribute("sessao");
        if (s == null) {
            s = new Sessao();
            ss.setAttribute("sessao", s);
        }
        return s;
    }

    public boolean login(String name, String password) {
        return false;
    }

    public boolean logged() {
        return false;
    }

    public void logout() {
    }

	public void closeDatabase() {
	}    
}
